package com.diaohw.module.file.obj.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import java.io.Serial;
import java.io.Serializable;

/**
 * 目录 DTO
 *
 * @author D-Hw
 * @since 2024-11-05
 */
@Data
@Accessors(chain = true)
@Schema(name = "CatalogDO", description = "目录 DTO")
public class CatalogDTO implements Serializable {


    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 目录名称
     */
    @Schema(description = "目录名称")
    private String catalogName;

    /**
     * 目录CODE
     */
    @Schema(description = "目录CODE")
    @Length(min = 3, max = 32, message = "编码长度为[4-32]")
    private String catalogCode;

    /**
     * 父节点ID
     */
    @Schema(description = "父节点ID")
    private String parentId;

    /**
     * 目录类型
     */
    @Schema(description = "目录CODE")
    private Integer catalogType;

    /**
     * 排序
     */
    @Schema(description = "排序")
    private Integer sort;

}
